package com.smartstate.autoMaticControl.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum DeviceTypeEnum {

    DEHUMIDIFIER_TYPE(6,"除湿机"),
    DUSTER_TYPE(8,"除尘机"),
    AIR_COMPRESSOR_TYPE(13,"空气压缩机"),
    COLD_SITE_TYPE(9,"冷站"),
    NEW_TREND_TYPE(11,"新风"),
    EXHAUST_AIR_TYPE(12,"排风"),
    PURE_WATER_ONE_TYPE(14,"纯水一"),
    PURE_WATER_TWO_TYPE(15,"纯水二"),
    PURE_WATER_THREE_TYPE(16,"纯水三"),
    NMP_DEVICE_TYPE(17,"NMP设备"),
    BLOWING_IN_TYPE(10,"送风");

    private  Integer value;
    private  String description;

    public static Integer getValue(String description) {
        for (DeviceTypeEnum c : DeviceTypeEnum.values()) {
            if (c.getDescription() == description) {
                return c.value;
            }
        }
        return null;
    }
}
